﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Infrastructure.HardCoding;
    
public partial class VerifyRegister : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Request.QueryString["orderType"] != null)
            {
                if (Request.QueryString["orderType"] == ((int)Enums.orderType.order).ToString())
                {
                    string destination = String.Format("~/Register.aspx?orderType={0}",
                                                       ((int) Enums.orderType.order).ToString());
                    lnkBtn.PostBackUrl = destination;

                }
                else if (Request.QueryString["orderType"] == ((int)Enums.orderType.request).ToString())
                {
                    string destination = String.Format("~/Register.aspx?orderType={0}",
                                                       ((int) Enums.orderType.request).ToString());
                    lnkBtn.PostBackUrl = destination;
                }
                else
                {
                    lnkBtn.PostBackUrl = "~/Register.aspx";
                }
            }
            else
                lnkBtn.PostBackUrl = "~/Register.aspx";
        }
    }
}
